$(function () {
     var token = getCookie("token-user");
       var userName = getCookie("userName");
     //alert("欢迎你"+userName);
     if(userName==""){
         location.href="login.html";
     }else{
        $("#userName").html(userName);
     }
});